package com.thinkTank;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication

//@ComponentScan(basePackages = {"com.thinkTank.oa.controller"})
@ServletComponentScan
@MapperScan({"com.thinkTank.oa.dao"})
public class OaApplication extends SpringBootServletInitializer{

	public static void main(String[] args) {
		SpringApplication.run(OaApplication.class, args);
	}
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(new Class[] { OaApplication.class});
	}
}



//账号：test@163.com 密码：Aa123321..